Relax an assertion in the concurrent tests
authorAlex Crichton <alex@alexcrichton.com>
Fri, 18 Mar 2016 16:49:24 +0000 (09:49 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 18 Mar 2016 16:49:24 +0000 (09:49 -0700)
The output may also have information about blocking, we just want the successful
part.

tests/test_cargo_concurrent.rs

index 6b4a5b6a0ca6e5d4a8c7ae586af935e9260903ec..4e8c1a8dbe597fc6b47cd4aed30898b202293a44 100644 (file)
@@ -86,7 +86,7 @@ test!(one_install_should_be_bad {
     assert_that(bad, execs().with_status(101).with_stderr_contains(&format!("\
 {error} binary `foo[..]` already exists in destination as part of `[..]`
 ", error = ERROR)));
-    assert_that(good, execs().with_status(0).with_stderr("\
+    assert_that(good, execs().with_status(0).with_stderr_contains("\
 warning: be sure to add `[..]` to your PATH [..]
 "));